﻿<%@ Control Language="C#" Inherits="Web.Control.WWW.Group.Members" %>
<input type="hidden" name="OPID" value="0" id="OPID" />
<input type="hidden" name="ReMID" value="0" id="ReMID" />
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=(gm.ImgUrlPath == "" ? "<img src='/images/no_pic.gif' border='0' height='35px' width='35px' align='absmiddle' alt=\"" + HttpUtility.HtmlAttributeEncode(gm.Title) + "\" />" : ("<img src='/UploadImages/Groups/" + gm.GroupID + "_2.jpg' border='0' height='35px' width='35px' align='absmiddle' alt=\"" + HttpUtility.HtmlAttributeEncode(gm.Title) + "\" />"))%> <%=gm.Title %></h1>
							</div>
							<div class="group_summary">
									<p><%=GetText("GP012")%>:&nbsp;<%=(gm.GroupType == "1" ? "<A href='/groups/learn-all-1-1-1.htm'>" + GetText("GP013") + "</a>" : (gm.GroupType == "2" ? "<A href='/groups/learn-all-2-1-1.htm'>" + GetText("GP014") + "</a>" : (gm.GroupType == "3" ? "<A href='/groups/all-3-1-1.htm'>" + GetText("C0087") + "</a>" : GetText("classroom"))))%>&nbsp;&nbsp;<%=gm.GroupType != "3" ? ((BLF.StaticData.HaveLanguageImage(gm.Language1) ? "<a href='" + WWWHost + "/groups/learn-" + gm.Language1 + "-0-1-1.htm' title='" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(gm.Language1) }) + "'><img src=\"/images/language_" + gm.Language1 + ".gif\" border='0'  align='absmiddle' /></a> " : "") + "<a href='" + WWWHost + "/groups/learn-" + gm.Language1 + "-0-1-1.htm'>" + GetText("C0105", new string[] { BLF.StaticData.GetLanguageText(gm.Language1) }) + "</a>&nbsp;&nbsp;") : ""%><%= BLF.StaticData.HaveLanguageImage(gm.Language2) ? "<a href='" + WWWHost + "/groups/" + gm.Language2 + "-3-1-1.htm' title='" + GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(gm.Language2) }) + "'><img src=\"/images/language_" + gm.Language2 + ".gif\" border='0'  align='absmiddle' /></a> " : ""%><a href='<%=WWWHost %>/groups/<%=gm.Language2 %>-3-1-1.htm'><%=GetText("C2018", new string[] { BLF.StaticData.GetLanguageText(gm.Language2) })%></a>
									</p>
									<%if(tagList.Count>0){ %>
									<p><%=GetText("C0107") %>:&nbsp;
										<%foreach (string tag in tagList)
										{%>
										<a href="<%=WWWHost%>/groups/tag/<%=tag%>.htm"><%=tag %></a>&nbsp;&nbsp;
										<%} %>
									</p>
									<%} %>
							</div>
							<div class="submenuN_button">
								<div class="layer_contentA5"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a class="naddbtn btnspec" href="/groups/create-group.htm" style="text-decoration:none"><%}else{ %><a class="naddbtn btnspec" href="#" onclick="NotAffirm()" style="text-decoration:none"><%} %><span>&nbsp;&nbsp;&nbsp;<%=GetText("GP200")%>&nbsp;&nbsp;&nbsp;</span></a></span></a>
										<%if (gm.GMR=="0")
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"Join('"+gm.JoinOptions +"')\"":"onclick=\"NotAffirm()\""%>><strong><%=GetText("GP205")%></strong></a></div>
										</div>
										<%}
										else if (gm.GMR=="3")
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick='Leave()'><strong><%=GetText("GP207")%></strong></a></div>
										</div>
										<%} 
										else if ( gm.Memberno == Memberno)
										{ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="/groups/editgroup/<%=gm.GID %>.htm" ><strong><%=GetText("GP206")%></strong></a></div>
										</div>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="<%=WWWHost %>/groups/<%=gm.GID %>/members-1.htm" ><strong><%=GetText("GP212")%></strong></a>
											<%if(gm.Requests>0){ %><br /><span dir="ltr">(<%=GetText("GP032",new string[]{gm.Requests.ToString()}) %>)</span><%} %>
											</div>
										</div>
										<%} %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" <%=(((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm)?"onclick=\"Invite('"+Escape(gm.Title)+"')\"":"onclick=\"NotAffirm()\""%>><strong><%=GetText("GP213") %></strong></a></div>
										</div>
										<%if(gm.GMR=="0"){ %>
										<div class="group_op">
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick="$Feedback$()"><strong><%=GetText("C0110")%></strong></a></div>
										</div>
										<%} %>
										<%if(gm.GMR=="3"){ %>
										<div class="group_op" >
											<div class="group_op_txt Black12UU"><a href="javascript:void(0);" onclick="AppAdmin()"><strong><%=GetText("GP224")%></strong></a></div>
										</div>
										<%} %>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div>
					<ul class="sort_sel">
						<li class="unselATags first"><span><a href="<%=WWWHost %>/groups/<%=gm.GID %>"><%=GetText("GP002")%></a></span></li>									
						<li class="unselATags"><span><a href="<%=WWWHost %>/groups/<%=gm.GID%>/forum-1.htm"><%=GetText("GP004")%></a></span></li>
						<li class="selATags"><span><%=GetText("C0088")%></span></li>
					</ul>	
					<div class="clear"></div>
				</div>
				<div class="center9001n">
					<div class="Center9001common">
						<div class="center9001content">
							<div class="group_area">
								<div class="spectitleTline">
									<div class="subtitle_left"><%=GetText("GP006",new string[]{(gm.Members.ToString())})%><%if(gm.GMR=="1"||gm.GMR=="2") {%>, <%=GetText("GP032",new string[]{gm.Requests.ToString()})%><%} %></div>
									<div class="subtitle_op"></div>
									<div class="clear"></div>
								</div>
								<div class="contentN">
									<table border="0" cellpadding="5" cellspacing="1" width="870">
										<tr>
											<td width="270" colspan="2" bgcolor="#efefef" class="grey11"><%=GetText("C0088")%></td>
											<td width="190" bgcolor="#efefef" class="grey11"><%=SortOrder != "1" ? "<a href='" + WWWHost + "/groups/" + gm.GID + "/members-1-1.htm'>" + GetText("GP043") + "</a>" : "<strong>" + GetText("GP043")+ "</strong>"%></td>
											<td width="120" bgcolor="#efefef" class="grey11"><%=SortOrder != "2" ? "<a href='" + WWWHost + "/groups/" + gm.GID + "/members-1-2.htm'>" + GetText("GP044") + "</a>" : "<strong>" + GetText("GP044") + "</strong>"%></td>									
											<td width="45" bgcolor="#efefef" class="grey11"><%=SortOrder != "4" ? "<a href='" + WWWHost + "/groups/" + gm.GID + "/members-1-4.htm'>" + GetText("GP036") + "</a>" : "<strong>" + GetText("GP036") + "</strong>"%></td>
										</tr>
									<asp:Repeater ID="rptMembers" runat="server">
									<ItemTemplate>
										<tr>
											<td class="G_table_list" width="70"><div class="pic50"><a class="photo_50" href="<%#WWWHost%>/<%#Eval("Memberno") %>.htm" ><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\" />" : "<img src=\"" + Eval("Avatar").ToString()+ "\" alt=\"" + HttpUtility.HtmlAttributeEncode(Eval("NickName").ToString()) + "\"/>"%></a></div></td>
											<td class="G_table_list" width="200"><span class="text14"><a href="<%#WWWHost%>/<%#Eval("Memberno") %>.htm"><%#Eval("Nickname") %></a></span> <span class="grey12"><%#BLF.StaticData.GetCountryText(Eval("Nationality").ToString())%></span>
											<p class="grey11"><%#GetText("C0005")%>: <strong><%#BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())%></strong> <img src="/Images/Level5.gif" align="absmiddle" border="0">
											<br><%#GetText("C0007")%>: <strong><%#BLF.StaticData.GetLanguageText(Eval("TargetLanguage").ToString())%></strong> <%#Eval("TargetLanguageLevel", "<img src=\"/Images/Level{0}.gif\" />") %></p></td>
											<td class="G_table_list" width="190"><%#GetPStateOP(Eval("GMR").ToString(),Eval("Memberno").ToString())%></td>
											<td class="G_table_list" width="120"><%#Eval("GMR").ToString() == "9" || Eval("GMR").ToString() == "8" ? "<a href='javascript:void(0);' onclick=\"OPMember(" + Eval("GMR").ToString() + ",'" + Eval("Memberno").ToString() + "')\"><img src='/Images/icon_accept.gif' border='0' /></a>&nbsp<a href='javascript:void(0);' onclick=\"OPMember(-" + Eval("GMR").ToString() + ",'" + Eval("Memberno").ToString() + "')\"><img src='/Images/icon_cancel.gif' border='0' /></a>" : ((DateTime)Eval("LastLogin")).ToString("dd/MM/yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo)%></td>
											<td class="G_table_list" width="45"><%#Eval("GMR").ToString() == "9" || Eval("GMR").ToString() == "8"?"":Eval("Posts")%></td>
										</tr>
									</ItemTemplate>
									</asp:Repeater>									
								  </table>									
									<div id="divPage" class="page_num">
										<%=CreatePageNav(RecordCount, int.Parse(litCount.Text), PageIndex, "",
											string.Format("<span class='page_none grey10'><a href='{0}/groups/{1}/members-$I$-{2}.htm'>{3}</a></span>&nbsp;", WWWHost,gm.GID,SortOrder,HttpUtility.UrlEncode(GetText("Prev"))),
											"",
											string.Format("<span class='page_none grey10'><a href='{0}/groups/{1}/members-$I$-{2}.htm'>{3}</a></span>&nbsp;", WWWHost,gm.GID,SortOrder,HttpUtility.UrlEncode(GetText("Next"))),
											string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
											string.Format("<span class='page_none grey10'><a href='{0}/groups/{1}/members-$I$-{2}.htm'>$I$</a></span>&nbsp;",WWWHost,gm.GID,SortOrder)
										)%>									
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
var GP230="<%=GetText("GP230") %>";
var GP231="<%=GetText("GP231") %>";
var GP232="<%=GetText("GP232") %>";
var GP116 = "<%=GetText("GP116") %>";
var GP115 = '<%=GetText("GP115") %>';
var GP224="<%=GetText("GP224") %>";
var C0056 = "<%=GetText("C0056") %>";
var nickName ="<%=NickName %>";
var groupTitle="<%=Escape(gm.Title) %>";
var pageIndex="<%=PageIndex %>";
var sortOrder="<%=SortOrder %>";
var groupID = "<%=gid %>";
var appAdminTitle="<%=GetText("GP224")%>";
var ST155='<%=GetText("ST155") %>'.replace(/\{0\}/gi,"3").replace(/\{1\}/gi,"1000");
var joinTitle = "<%=GetText("GP052")%>";
var joinDesc = "<%=GetText("GP229")%>";
var joDesc="<%=GetText("GP117")%>";
var leaveTitle="<%=GetText("GP053")%>";
</script>